package lab01;

/**
 * Created by lenovo on 2017/9/29.
 */
public class Test06 {
    public static void main(String[] args) {
        int socer=4;
        if (socer==1) {
            System.out.println("不及格");
        }
            else if (socer==2){
                System.out.println("及格");

        }
        else if (socer==3){
            System.out.println("中等");
        }
        else if (socer==4){
            System.out.println("良好");
        }
        else
        System.out.println("优秀");
    }
    public static void Switc(){
        int socer=4;
        switch(socer){
            case 1:
                System.out.println("不及格");
                break;
            case  2:
                System.out.println("及格");
                break;
            case 3:
                System.out.println("中等");
                break;
            case 4:
                System.out.println("良好");
                break;
            case 5:
                System.out.println("优秀");
                break;
        }

    }
}

